From: Matthias Clasen Date: Fri, 15 Jul 2022 20:44:54 +0000 (-0400) Subject: text: Update placeholder visibility more X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~81^2^2~59^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ac81ed3adb02fec744badb1b621f5605133692b0;p=gtk4.git text: Update placeholder visibility more When the text in the buffer changes, we should update the placeholder visibility, since we might have gone from empty to non-empty. --- diff --git a/gtk/gtktext.c b/gtk/gtktext.c index 92903949fe..3a390fcc11 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -3695,6 +3695,7 @@ buffer_notify_text (GtkEntryBuffer *buffer, GtkText *self) { emit_changed (self); + update_placeholder_visibility (self); g_object_notify (G_OBJECT (self), "text"); }